var shr_url = this.apiurl+"?v="+this.v+"&apitype="+apitype+"&apikey="+this.apikey+"&service="+service_id+"&title="+encodeURIComponent(escape(content.document.title))+"&link="+encodeURIComponent(escape(content.location.href))+"¬es="+encodeURIComponent(escape(content.getSelection()))+"&source="+this.source;
} else {
var shr_url = this.apiurl+"?v="+this.v+"&apitype="+apitype+"&apikey="+this.apikey+"&service="+service_id+"&title="+encodeURIComponent(escape(content.document.title))+"&link="+surfcanyon_short_url+"¬es="+encodeURIComponent(escape(content.getSelection()))+"&source="+this.source;
}
this.opennewtab(shr_url);
},
dest_mailto: function() {
this.census(201);
window.top.getBrowser().loadURI("javascript:crlf=%22%250D%250A%22;h=location.href;t=document.title;e%20=%20%22%22%20+%20(window.getSelection%20?%20window.getSelection()%20:%20document.getSelection%20?%20document.getSelection()%20:%20document.selection.createRange().text);%20if%20(e!=null)%20location=%22mailto:%22%20+%20%22?Subject=%22%20+%20escape(t)%20+%20%22&Body=%22%20+%20escape(e).replace(/%20/g,%20%22+%22)%20+%20crlf%20+%20escape(h)%20+' (sent via http://www.SurfCanyon.com)'+%20%22%20%22;%20void%200");
},
census: function(service_id, notes) {
var sc_record_http_request = new XMLHttpRequest();
var sc_shareaholic_url = "http://www.shareaholic.com/api/share/?v=1&apitype=2&apikey="+this.apikey+"&service="+service_id+"&title="+escape(content.document.title)+"&link="+escape(content.location.href)+"¬es="+escape(content.getSelection());